//
//  SSNormalDetaillCell.swift
//  拾舍清洁
//
//  Created by sky.wei on 2023/6/1.
//

import UIKit

class SSNormalDetaillCell: UITableViewCell {
    
    @IBOutlet weak var contentV: UIView!
    
    lazy var imageV = UIImageView()

    
    override func awakeFromNib() {
        super.awakeFromNib()
        imageV.frame = CGRect(x: 0, y: 0, width: ScreenWidth, height: getNormalDetailImageH())
        contentView.addSubview(imageV)
        
    }

 
    var normal:SSNormal = SSNormal(){
        didSet{
            imageV.setImage(with: normal.imgUrl)
        }
    }
    
    
}

func getNormalDetailImageH() -> CGFloat {
    let width:CGFloat = 375
    let height:CGFloat = 620
    let resultH:CGFloat = height*(ScreenWidth/width)
    return resultH
}
